package com.xpxt.customer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableScheduling   //开启定时器
@EnableCaching  //开启缓存
@SpringBootApplication
@EnableTransactionManagement //开启事务支持
//此注解可引用common包的实体类
//扫描公用类包和自身
@ComponentScan(basePackages = {"com.xpxt.customer","com.xpxt.common"})
public class CustomerApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomerApplication.class, args);
    }

}
